package com.tiankun.eurekasellinfo.mapper;

import com.tiankun.eurekasellinfo.pojo.Merchant;
import org.springframework.stereotype.Repository;

import java.util.Date;

/**
 * @Author 杨天可
 * @Date 2020/11/13 9:41
 * @Version 1.0
 */
@Repository
public interface MerchantMapper {
    //商家注册
    int regist(Merchant merchant);
    //根据电话查找商家
    int selectByPhone(String phone);

    //查找商家的盐
    String findSalt(String phone);
    //查找商家的密码
    String findPwd(String phone);
    //商家登录返回信息
    Merchant findMer(String phone);

    //修改密码
    int changepwd(String password,String salt,String phone);
}
